package com.example.imitation_webchat_demo.entity;

// 聊天消息实体类，是个bean类
public class ChatMsgEntity {
	private String username;   // 消息来源者
	private String time;           // 消息时间
	private String message;    // 消息内容
	private boolean isComeMsg = true; // 是否为收到的消息
	
	public ChatMsgEntity(){
		
	}
	
	public ChatMsgEntity(String username, String time, String message,
			boolean isComeMsg) {
		this.username = username;
		this.time = time;
		this.message = message;
		this.isComeMsg = isComeMsg;
	}

	public String getUsername() {
		return username;
	}

	public void setUsername(String username) {
		this.username = username;
	}

	public String getTime() {
		return time;
	}

	public void setTime(String time) {
		this.time = time;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public boolean isComeMsg() {
		return isComeMsg;
	}

	public void setComeMsg(boolean isComeMsg) {
		this.isComeMsg = isComeMsg;
	}
}